﻿using System.Web.Mvc;

namespace VirtualPress.Portal.Web.Areas.Journals
{
    public class JournalsAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Journals";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Journals_default",
                "Journals/{controller}/{action}/{id}",  
                new { controller = "Home", action = "List", id = UrlParameter.Optional },
                new string[] { "VirtualPress.Portal.Web.Areas.Journals.Controllers" }
            );
        }
    }
}
